<template>
	<view class="empty-content">
		<image class="empty-content-image" src="../static/img/noOrder.png" mode=""></image>
		<view class="txt">
			暂无相关订单记录
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			src: {
				type: String,
				default: 'empty'
			},
		},

		data() {
			return {
				typeSrc: {
					empty: '../static/img/noOrder.png'
					},
			}
		},

		computed: {
			setSrc() {
				return this.typeSrc[this.src];
			},
		}
	}
</script>

<style lang="scss">
	.txt{
		font-size: 26upx;
		color: #999999;
		margin-top: 32upx;
	}
	.empty-content {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		
		position: fixed;
		left: 0;
		top: 0;
		right: 0;
		bottom: 0;
		background: $page-color-base;
		padding-bottom: 120upx;

		&-image {
			width: 304upx;
			height: 268upx;
		}
	}
</style>
